import VueRouter from 'vue-router'
import first from './component/first.vue'
import second from './component/second.vue'
import third from './component/third.vue'
import theFourth from './component/theFourth.vue'
import pass from './component/pass.vue';//主页组件
import detail from './component/detail.vue';//详情页组件
import tabbar from './component/tabbar.vue';//tabbar
import go from './component/go.vue'

export default new VueRouter({
    mode:'history',
    routes: [
		{
			path:'/go',
			name:"go",
			component:go,
		},
		{
		    path:'/tabbar',
			name:'tabbar',
			component:tabbar,
		},
       {
		   path:'/',
		   name:'path',
		   component:pass,
	   },
	   {
		   path:'/detail',
		   name:'detail',
		   component:detail,
		   children:[
			   {
				   path:"/second",
				   name:'second',
				   component:second,
			   },
			   {
			   	    path:"/third",
			 	    name:'third',
			   	    component:third,
			   },
			   {
			   		path:"/first",
			   	    name:'first',
			   		component:first,
			   },
			   {
			   	    path:"/fourth",
			   	    name:'theFourth',
			   	    component:theFourth,
			   }
		   ]
	   }
    ],
})